<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <head th:include="common/global :: global('用户列表','css','admin/user/userList')">

    </head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span
        class="c-gray en">&gt;</span> 用户管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
                                              href="javascript:location.replace(location.href);" title="刷新"><i
        class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">
        <form action="" method="post">
            <input type="text" class="input-text" style="width:250px" placeholder="输入用户真实姓名" name="userName">
            <button type="submit" class="btn btn-success radius"><i class="Hui-iconfont">&#xe665;</i> 搜用户</button>
        </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20"><span class="l"> <a href="javascript:;"
                                                                onclick="member_add('添加用户','/admin/user/getUser','400','310')"
                                                                class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加用户</a></span>
    </div>
    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th width="80">序号</th>
                <th width="100">用户名</th>
                <th width="40">真实姓名</th>
                <th width="150">状态</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>

            <tr class="text-c" th:each="item: ${pageinfo.list}">

                <td th:text="${item.getTid()}"></td>
                <td th:text="${item.getUserName()}"></td>
                <td th:text="${item.getRealName()}"></td>
                <td class="td-status" th:if="${item.getStatus()==0}">
                    <span class="label label-defaunt radius">已禁用</span>
                </td>
                <td class="td-status" th:if="${item.getStatus()==1}">
                    <span class="label label-success radius">已启用</span>
                </td>
                <td class="td-manage">
                    <!--   <c:if test="${item.status==0}">
                           <a style="text-decoration:none" onClick="member_start(this,'${item.tid}')" href="javascript:;" title="启用"><i class="Hui-iconfont">&#xe6e1;</i></a>
                       </c:if>
                       <c:if test="${item.status==1}">
                           <a style="text-decoration:none" onClick="member_stop(this,'${item.tid}')" href="javascript:;" title="停用"><i class="Hui-iconfont">&#xe631;</i></a>
                       </c:if>-->
                    <a style="text-decoration:none" th:onClick="'modifyStatus('+${item.getTid()}+','+${item.getStatus()==1?0:1}+')'" href="javascript:;" th:title="${item.getStatus()==1?'停用':'启用'}" th:switch="${item.getStatus()}">
                        <i class="Hui-iconfont"  th:case="0">&#xe631;</i>
                        <i class="Hui-iconfont"  th:case="1">&#xe6e1;</i>

                    </a>

                    <a title="编辑" href="javascript:void(0);"
                       th:onclick="'member_add(\'编辑\',\'/admin/user/getUser?tid='+${item.getTid()}+'\',\'400\',\'310\')'"
                       class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a>
                    <a style="text-decoration:none" class="ml-5" href="javascript:;"
                       th:onclick="'reSetPassWord('+${item.getTid()}+')'" title="重置密码"><i class="Hui-iconfont">&#xe63f;</i></a>
                </td>
            </tr>

            </tbody>
        </table>
    </div>
</div>

</body>
</html>